package com.jwater.core.net.group;

import com.jwater.core.manager.common.model.NodeInfo;
/**
 * @description:
 * @author: jnner
 * @createDate: 2021/2/5
 * @version: 1.0
 */
public class Member {
	private int memberId;
	private String ip;
	private int innerPort;
	private int outerPort;
	private NodeInfo nodeInfo;

	public Member() {
	}

	public Member(int memberId, String ip, int innerPort, int outerPort) {
		this.memberId = memberId;
		this.ip = ip;
		this.innerPort = innerPort;
		this.outerPort = outerPort;
	}

	public int getMemberId() {
		return memberId;
	}

	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getInnerPort() {
		return innerPort;
	}

	public void setInnerPort(int innerPort) {
		this.innerPort = innerPort;
	}

	public int getOuterPort() {
		return outerPort;
	}

	public void setOuterPort(int outerPort) {
		this.outerPort = outerPort;
	}

	public NodeInfo getNodeInfo() {
		return nodeInfo;
	}

	public void setNodeInfo(NodeInfo nodeInfo) {
		this.nodeInfo = nodeInfo;
	}

	@Override
	public String toString() {
		return "Member [memberId=" + memberId + ", ip=" + ip + ", innerPort=" + innerPort + ", outerPort=" + outerPort
				+ "]";
	}
}
